﻿using oop3;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

class Program
{
    static void Main(string[] args)
    {
        //MyException myException = new MyException("自定义错误");
        //try
        //{
        //    throw new MyException("自定义错误");
        //}
        //catch (MyException e)
        //{           
        //    Console.WriteLine(myException);
        //}
        //finally
        //{
        //    Console.WriteLine("最后的清理工作!");
        //}

        Employee emp = new Employee("张三", 18);
        emp.Name = "李四";
        emp.Age = 19;
        //将emp对象进行保存，在未来可以进行还原
        string path = @"D:\emploee.txt";
        FileStream fs = new FileStream(path,FileMode.OpenOrCreate);
        
    }
}
